package Share;

public enum TransmitStatus {
	error,
	success,
	serverWriteError,
	clientWriteError,
	insufficentPermission,
	hostNotFound,
	clientFileSendError,
	serverFileSendError,
	clientFileReceiveError,
	clientFileNotFound,
	serverFileNotFound,
	badHash,
	invalidToken,
	certificateDenied,
	invalidName,
	invalidCertificate,
	noSession,
	wrongToken;
	
	public static TransmitStatus deserialize(int i)
	{
		try
		{
			return values()[i];
		}
		catch(IndexOutOfBoundsException e)
		{
			return error;
		}
	}
}
